<?php
/**
 * @file test016.php
 * @package taobaoke
 * @subpackage 
 * @version $id: 0.1 UTF-8 2009-7-30 下午09:44:41 $
 * @author LD King (mifunny.info)
 * @copyright Copyright (c) 2007 - 2009 MiFunny China Inc. (http://mifunny.info)
 * 测试写入
 */
header("Content-Type:text/html;charset=UTF-8");
require_once 'lib/functions.php';
set_time_limit(0);
$dbh = new tbkDB();
$item = $dbh->getItemRand();
//$item = $dbh->getItemInfo('db8e4865e3d5da38b1d1a48e5cd7b7ad');

/*if ( postItem2XMLRPC($item) )
	echo $item['title2']; */

//var_dump($item);


$keys = getKeywords($item['title'], $item['properties'], $item['cname']);
//echo getContent($item, $keys);
//echo 6/5;

//postItem2WP(array());
echo  preg_replace('/\s|\.|\/|－/', '-', "1－100");







/*for ($i=0; $i<10000; $i++){
	$item = $dbh->getItemRand();
	
	$post = makeItem2Post($item);
	
	if ($dbh->inPost($post) ) {
		$dbh->updateRow( array('table' => 'items',
								'ID' => 'iid',
								'key' => $item['iid'],
								'row' => 'is',
								'value' => '1') );
		echo "<span style=\"color:red;\">{$i}</span> - {$item['title2']}({$item['iid']})<br />";
	}
	
}//END for*/






?>